<!DOCTYPE html>
<style>
p > span {background-color:green;}
</style>
<p>foo <span>this should have a green background</span></p>